﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class artile_comment
    {
		public string id=null;
		public string channel_id=null;
		public string article_id=null;
		public string parent_id=null;
		public string user_id=null;
		public string user_name=null;
		public string user_ip=null;
		public string content=null;
		public string add_time=null;
        public string __name__;
        public artile_comment(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.channel_id = string.Format("{0}.channel_id",__name__);
			this.article_id = string.Format("{0}.article_id",__name__);
			this.parent_id = string.Format("{0}.parent_id",__name__);
			this.user_id = string.Format("{0}.user_id",__name__);
			this.user_name = string.Format("{0}.user_name",__name__);
			this.user_ip = string.Format("{0}.user_ip",__name__);
			this.content = string.Format("{0}.content",__name__);
			this.add_time = string.Format("{0}.add_time",__name__);
        }
        public artile_comment()
        {
			this.id = string.Format("{0}.id",__name__);
			this.channel_id = string.Format("{0}.channel_id",__name__);
			this.article_id = string.Format("{0}.article_id",__name__);
			this.parent_id = string.Format("{0}.parent_id",__name__);
			this.user_id = string.Format("{0}.user_id",__name__);
			this.user_name = string.Format("{0}.user_name",__name__);
			this.user_ip = string.Format("{0}.user_ip",__name__);
			this.content = string.Format("{0}.content",__name__);
			this.add_time = string.Format("{0}.add_time",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "artile_comment";
            }
            else
            {
                return string.Format("artile_comment as {0}",__name__);
            }
        }
    }
}